<?php

namespace App\Kuafu\Coupon\Controller\Pos;

use App\Kuafu\Base\Controller\BaseController;
use App\Kuafu\Coupon\Service\CouponService;
use App\Kuafu\Order\Model\OrderSplitModel;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;

class CouponController extends BaseController
{

    public function getPosEnableCouponList(Request $request)
    {

//        dd(DB::connection('mysqlOrder')->getPdo());
//        $result = DB::connection('mysqlOrder')->select("select * from `kf_order_041` where `orderId` = ? and `isDeleted` = ?", [
//            135955829793752049,
//            0
//        ]);
//        dd($result);
////
//        DB::enableQueryLog();
//        $result = DB::connection('mysqlOrder')->table('order_041')
//                    ->where('orderId', '135955829793752049')
//                    ->where('isDeleted', 0)
//                    ->first();

//        dd($result);
////        dump(DB::getQueryLog());
////        die;
////
////        $result = DB::connection('mysqlOrder')->table('order_041')
////                    ->where('orderId', 136679548237382709)
////                    ->where('isDeleted', 0)
////                    ->first();
////
//        $result = OrderSplitModel::suffix(13741)->query()->where('orderId', '135955829793752049')->first();
//        dd($result);
    }
}
